using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BottleCountInfo : GeneratedMessageLite<BottleCountInfo, BottleCountInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BottleCountInfo, BottleCountInfo.Builder>
		{
			private bool resultIsReadOnly;
			private BottleCountInfo result;
			protected override BottleCountInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BottleCountInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BottleCountInfo DefaultInstanceForType
			{
				get
				{
					return BottleCountInfo.DefaultInstance;
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public int ThrowCount
			{
				get
				{
					return this.result.ThrowCount;
				}
				set
				{
					this.SetThrowCount(value);
				}
			}
			public int PickCount
			{
				get
				{
					return this.result.PickCount;
				}
				set
				{
					this.SetPickCount(value);
				}
			}
			public Builder()
			{
				this.result = BottleCountInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BottleCountInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BottleCountInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BottleCountInfo other = this.result;
					this.result = new BottleCountInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BottleCountInfo.Builder Clear()
			{
				this.result = BottleCountInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BottleCountInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BottleCountInfo.Builder(this.result);
				}
				return new BottleCountInfo.Builder().MergeFrom(this.result);
			}
			public override BottleCountInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BottleCountInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is BottleCountInfo)
				{
					return this.MergeFrom((BottleCountInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BottleCountInfo.Builder MergeFrom(BottleCountInfo other)
			{
				return this;
			}
			public override BottleCountInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BottleCountInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BottleCountInfo._bottleCountInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BottleCountInfo._bottleCountInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 8u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasThrowCount = input.ReadInt32(ref this.result.throwCount_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasPickCount = input.ReadInt32(ref this.result.pickCount_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public BottleCountInfo.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public BottleCountInfo.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public BottleCountInfo.Builder SetThrowCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = true;
				this.result.throwCount_ = value;
				return this;
			}
			public BottleCountInfo.Builder ClearThrowCount()
			{
				this.PrepareBuilder();
				this.result.hasThrowCount = false;
				this.result.throwCount_ = 0;
				return this;
			}
			public BottleCountInfo.Builder SetPickCount(int value)
			{
				this.PrepareBuilder();
				this.result.hasPickCount = true;
				this.result.pickCount_ = value;
				return this;
			}
			public BottleCountInfo.Builder ClearPickCount()
			{
				this.PrepareBuilder();
				this.result.hasPickCount = false;
				this.result.pickCount_ = 0;
				return this;
			}
		}
		public const int CreateTimeFieldNumber = 1;
		public const int ThrowCountFieldNumber = 2;
		public const int PickCountFieldNumber = 3;
		private static readonly BottleCountInfo defaultInstance;
		private static readonly string[] _bottleCountInfoFieldNames;
		private static readonly uint[] _bottleCountInfoFieldTags;
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasThrowCount;
		private int throwCount_;
		private bool hasPickCount;
		private int pickCount_;
		private int memoizedSerializedSize = -1;
		public static BottleCountInfo DefaultInstance
		{
			get
			{
				return BottleCountInfo.defaultInstance;
			}
		}
		public override BottleCountInfo DefaultInstanceForType
		{
			get
			{
				return BottleCountInfo.DefaultInstance;
			}
		}
		protected override BottleCountInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public int ThrowCount
		{
			get
			{
				return this.throwCount_;
			}
		}
		public int PickCount
		{
			get
			{
				return this.pickCount_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasCreateTime && this.hasThrowCount && this.hasPickCount;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.CreateTime);
				}
				if (this.hasThrowCount)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.ThrowCount);
				}
				if (this.hasPickCount)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.PickCount);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BottleCountInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] bottleCountInfoFieldNames = BottleCountInfo._bottleCountInfoFieldNames;
			if (this.hasCreateTime)
			{
				output.WriteUInt32(1, bottleCountInfoFieldNames[0], this.CreateTime);
			}
			if (this.hasThrowCount)
			{
				output.WriteInt32(2, bottleCountInfoFieldNames[2], this.ThrowCount);
			}
			if (this.hasPickCount)
			{
				output.WriteInt32(3, bottleCountInfoFieldNames[1], this.PickCount);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasThrowCount)
			{
				num ^= this.throwCount_.GetHashCode();
			}
			if (this.hasPickCount)
			{
				num ^= this.pickCount_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			BottleCountInfo bottleCountInfo = object_0 as BottleCountInfo;
			return bottleCountInfo != null && (this.hasCreateTime == bottleCountInfo.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(bottleCountInfo.createTime_))) && (this.hasThrowCount == bottleCountInfo.hasThrowCount && (!this.hasThrowCount || this.throwCount_.Equals(bottleCountInfo.throwCount_))) && (this.hasPickCount == bottleCountInfo.hasPickCount && (!this.hasPickCount || this.pickCount_.Equals(bottleCountInfo.pickCount_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BottleCountInfo, BottleCountInfo.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<BottleCountInfo, BottleCountInfo.Builder>.PrintField("ThrowCount", this.hasThrowCount, this.throwCount_, writer);
			GeneratedMessageLite<BottleCountInfo, BottleCountInfo.Builder>.PrintField("PickCount", this.hasPickCount, this.pickCount_, writer);
		}
		public static BottleCountInfo ParseFrom(byte[] data)
		{
			return BottleCountInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BottleCountInfo MakeReadOnly()
		{
			return this;
		}
		public static BottleCountInfo.Builder CreateBuilder()
		{
			return new BottleCountInfo.Builder();
		}
		public override BottleCountInfo.Builder ToBuilder()
		{
			return BottleCountInfo.CreateBuilder(this);
		}
		public override BottleCountInfo.Builder CreateBuilderForType()
		{
			return new BottleCountInfo.Builder();
		}
		public static BottleCountInfo.Builder CreateBuilder(BottleCountInfo prototype)
		{
			return new BottleCountInfo.Builder(prototype);
		}
		static BottleCountInfo()
		{
			BottleCountInfo.defaultInstance = new BottleCountInfo().MakeReadOnly();
			BottleCountInfo._bottleCountInfoFieldNames = new string[]
			{
				"CreateTime",
				"PickCount",
				"ThrowCount"
			};
			BottleCountInfo._bottleCountInfoFieldTags = new uint[]
			{
				8u,
				24u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.BottleCountInfo.Descriptor, null);
		}
	}
}
